# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=font-sun-misc
pkgver=1.0.4
pkgrel=1
pkgdesc="X.org misc font"
url="https://xorg.freedesktop.org/"
arch="noarch"
license="MIT"
options="!check"
depends="encodings font-alias mkfontscale fontconfig"
makedepends="font-util-dev bdftopcf"
source="https://www.x.org/releases/individual/font/font-sun-misc-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-mapfiles=/usr/share/fonts/util \
		--with-fontdir=/usr/share/fonts/misc
	make
}

package() {
	make DESTDIR="$pkgdir" \
		MKFONTDIR=: \
		MKFONTSCALE=: \
		FCCACHE=: \
		install
}

sha512sums="
9eeb330c1190557479636119af8aeb49917f1faeaa42d3a93e35d318348ee4247405544107ce9f5a244dbe2c0001c8d34b604b961bd9d92431f84b992fe9739e  font-sun-misc-1.0.4.tar.xz
"
